class Test
  def arr
    [2,3,4,5]
  end
  
  def get_data
    [1,2,3].inject(arr){|a,i| a[i]*=i;a}
  end
end

t=Test.new
a=t.get_data
puts a